package org.reliablesource.prism.gef.editor.parts;

import org.eclipse.gef.commands.Command;
import org.eclipse.gef.requests.GroupRequest;
import org.reliablesource.prism.gef.editor.commands.ConnectionDeleteCommand;
import org.reliablesource.prism.gef.editor.model.Wire;

/**
 * 
 * WireEditPolicy.java 
 *
 * Copyright (c) 2006, Reliable Source, Inc. All Rights Reserved
 * 
 * Created on: Apr 12, 2006
 * 
 * @author Dennis Park <a
 *         href="mailto:dennis.park@gmail.com">dennis.park@gmail.com</a>
 * 
 */
public class WireEditPolicy extends
		org.eclipse.gef.editpolicies.ConnectionEditPolicy {

	protected Command getDeleteCommand(final GroupRequest request) {
		ConnectionDeleteCommand c = new ConnectionDeleteCommand(
				(Wire) getHost().getModel());
		return c;
	}

}
